package net.togogo.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class goPageController {

    //跳转到首页
    @GetMapping("/")
    public String goIndex(){
        return "index";
    }

    //跳转到登录页面
    @GetMapping("/login")
    public String toLogin(){
        return "login";
    }

    //跳转到注册页面
    @GetMapping("/register")
    public String toRegister(){
        return "register";
    }

    //跳转到问答页面
    @GetMapping("/ask")
    public String toask(){
        return "ask";
    }
}
